package com.tjetc.controller;

import com.tjetc.entity.LogisticsPartner;
import com.tjetc.entity.SpcifyResults;
import com.tjetc.entity.SpcifyShoes;
import com.tjetc.service.SpcifyResultsService;
import com.tjetc.util.R;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 定制结果表(SpcifyResults)表控制层
 *
 * @author makejava
 * @since 2025-09-15 14:10:30
 */
@RestController
@RequestMapping("spcifyResults")
public class SpcifyResultsController {
    /**
     * 服务对象
     */
    @Resource
    private SpcifyResultsService spcifyResultsService;

    @GetMapping("/page")
    public R queryByPage(@RequestParam String name, Integer pageNum, Integer pageSize) {
        return R.ok(this.spcifyResultsService.queryByPage(name,pageNum,pageSize));
    }


    @PostMapping("/update")
    public R updateById(@RequestBody SpcifyResults spcifyResults){
        this.spcifyResultsService.updateById(spcifyResults);
        return R.ok();
    }

    @GetMapping("/delete")
    public R deleteById(Long id){
        this.spcifyResultsService.deleteById(id);
        return R.ok();
    }
}

